package test1225;

public class Test06 {
    public static void m06(int[] arr,int[] brr){
        for (int i :arr){
            for (int j :brr){
                if(i==j){
                    System.out.print(i);
                }
            }
        }
    }
    public static void main(String[] args) {
        // 打印两个数组的交集
        int[] arr = {1,2,3,4,5};
        int[] brr = {3,4,5,6,7};
        m06(arr, brr);
    }
}
